home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir24
/
jnos110g.zip
/
MACA.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-04-17
|
848b
|
33 lines
void
maca_recv(iface,axp,src,dest,bp,mcast)
struct iface *iface;
struct ax25_cb *axp;
char *src;
char *dest;
struct mbuf *bp;
int mcast;
{
int c;
int32 dt;
if(iface->ioctl == NULL)
return bp; /* No device ioctl - can't do anything */
c = PULLCHAR(&bp);
switch(c){
case MACA_RTS:
send_ax25(
/* Mute long enough for the addressed station to send
* a CTS. Since that's channel speed dependent, use a special
* value to tell the driver to use the right value
*/
(*iface->ioctl)(iface,PARAM_MUTE,1,-1);
break;
case MACA_CTS: /* Inhibit transmitter for requested interval */
dt = pull32(&bp);
(*iface->ioctl)(iface,PARAM_MUTE,1,dt);
break;
}
return bp;
}